package com.jlcindia;

public class oopsTest27 {

	public static void main(String[] args) {
		Abc27 abcRef=new Abc27();
		Abc27.Xyz xyRef=abcRef.new Xyz();
		Abc27.Xyz.Mno mnRef=xyRef.new Mno();
		mnRef.show(false);
		
		new Abc27().new Xyz().new Mno().show(true);

	}
}
class Abc27{
	String data="ABCdata";
	class Xyz{
		String data="XYZdata";
		class Mno{
			String data="Mnodata";
			void show(boolean data){
				System.out.println("\n**show() called**");
				System.out.println(data);
				System.out.println(this.data);
				System.out.println(Mno.this.data);
				System.out.println(Xyz.Mno.this.data);
				System.out.println(Abc27.Xyz.Mno.this.data);
				System.out.println(Xyz.this.data);
				System.out.println(Abc27.Xyz.this.data);
				System.out.println(Abc27.this.data);
			}
		}
	}
}